package com.qf.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {
    private Integer id;
    private String username;
    private String tel;
    private String password;
    //@JsonFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creat_time;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date update_time;
    private List<Car> car;
    private List<parkspace> parkspace;
//    private String xiaoqu;
//    private String loudong;
//    private String danyuan;
//    private String fangjian;]

    public UserInfo(Integer id, String username) {
        this.id = id;
        this.username = username;
    }
}
